import request from "@/utils/request";

// 获取住院记录
export function getHospitalRecord(data) {
  return request({
    url: `/api/HospitalRecord/list`,
    method: "post",
    data,
  });
}

// 删除住院记录
export function removeHospitalRecord(recordId) {
  return request({
    url: `/api/HospitalRecord/${recordId}`,
    method: "delete",
  });
}

// 新增住院记录
export function addHospitalRecord(data) {
  return request({
    url: "/api/HospitalRecord/add",
    method: "post",
    data,
  });
}

// 更新住院记录
export function updateHospitalRecord(data) {
  return request({
    url: "/api/HospitalRecord/update",
    method: "post",
    data,
  });
}
